package com.diploma.interaction.model;

import java.util.ArrayList;
import java.util.List;

public class WxxcxBdxxExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxxcxBdxxExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBdidIsNull() {
            addCriterion("BDID is null");
            return (Criteria) this;
        }

        public Criteria andBdidIsNotNull() {
            addCriterion("BDID is not null");
            return (Criteria) this;
        }

        public Criteria andBdidEqualTo(Short value) {
            addCriterion("BDID =", value, "bdid");
            return (Criteria) this;
        }

        public Criteria andBdidNotEqualTo(Short value) {
            addCriterion("BDID <>", value, "bdid");
            return (Criteria) this;
        }

        public Criteria andBdidGreaterThan(Short value) {
            addCriterion("BDID >", value, "bdid");
            return (Criteria) this;
        }

        public Criteria andBdidGreaterThanOrEqualTo(Short value) {
            addCriterion("BDID >=", value, "bdid");
            return (Criteria) this;
        }

        public Criteria andBdidLessThan(Short value) {
            addCriterion("BDID <", value, "bdid");
            return (Criteria) this;
        }

        public Criteria andBdidLessThanOrEqualTo(Short value) {
            addCriterion("BDID <=", value, "bdid");
            return (Criteria) this;
        }

        public Criteria andBdidIn(List<Short> values) {
            addCriterion("BDID in", values, "bdid");
            return (Criteria) this;
        }

        public Criteria andBdidNotIn(List<Short> values) {
            addCriterion("BDID not in", values, "bdid");
            return (Criteria) this;
        }

        public Criteria andBdidBetween(Short value1, Short value2) {
            addCriterion("BDID between", value1, value2, "bdid");
            return (Criteria) this;
        }

        public Criteria andBdidNotBetween(Short value1, Short value2) {
            addCriterion("BDID not between", value1, value2, "bdid");
            return (Criteria) this;
        }

        public Criteria andNsrmcIsNull() {
            addCriterion("NSRMC is null");
            return (Criteria) this;
        }

        public Criteria andNsrmcIsNotNull() {
            addCriterion("NSRMC is not null");
            return (Criteria) this;
        }

        public Criteria andNsrmcEqualTo(String value) {
            addCriterion("NSRMC =", value, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcNotEqualTo(String value) {
            addCriterion("NSRMC <>", value, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcGreaterThan(String value) {
            addCriterion("NSRMC >", value, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcGreaterThanOrEqualTo(String value) {
            addCriterion("NSRMC >=", value, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcLessThan(String value) {
            addCriterion("NSRMC <", value, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcLessThanOrEqualTo(String value) {
            addCriterion("NSRMC <=", value, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcLike(String value) {
            addCriterion("NSRMC like", value, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcNotLike(String value) {
            addCriterion("NSRMC not like", value, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcIn(List<String> values) {
            addCriterion("NSRMC in", values, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcNotIn(List<String> values) {
            addCriterion("NSRMC not in", values, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcBetween(String value1, String value2) {
            addCriterion("NSRMC between", value1, value2, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrmcNotBetween(String value1, String value2) {
            addCriterion("NSRMC not between", value1, value2, "nsrmc");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmIsNull() {
            addCriterion("NSRSFZJZL_DM is null");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmIsNotNull() {
            addCriterion("NSRSFZJZL_DM is not null");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmEqualTo(String value) {
            addCriterion("NSRSFZJZL_DM =", value, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmNotEqualTo(String value) {
            addCriterion("NSRSFZJZL_DM <>", value, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmGreaterThan(String value) {
            addCriterion("NSRSFZJZL_DM >", value, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmGreaterThanOrEqualTo(String value) {
            addCriterion("NSRSFZJZL_DM >=", value, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmLessThan(String value) {
            addCriterion("NSRSFZJZL_DM <", value, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmLessThanOrEqualTo(String value) {
            addCriterion("NSRSFZJZL_DM <=", value, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmLike(String value) {
            addCriterion("NSRSFZJZL_DM like", value, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmNotLike(String value) {
            addCriterion("NSRSFZJZL_DM not like", value, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmIn(List<String> values) {
            addCriterion("NSRSFZJZL_DM in", values, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmNotIn(List<String> values) {
            addCriterion("NSRSFZJZL_DM not in", values, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmBetween(String value1, String value2) {
            addCriterion("NSRSFZJZL_DM between", value1, value2, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjzlDmNotBetween(String value1, String value2) {
            addCriterion("NSRSFZJZL_DM not between", value1, value2, "nsrsfzjzlDm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmIsNull() {
            addCriterion("NSRSFZJHM is null");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmIsNotNull() {
            addCriterion("NSRSFZJHM is not null");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmEqualTo(String value) {
            addCriterion("NSRSFZJHM =", value, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmNotEqualTo(String value) {
            addCriterion("NSRSFZJHM <>", value, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmGreaterThan(String value) {
            addCriterion("NSRSFZJHM >", value, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmGreaterThanOrEqualTo(String value) {
            addCriterion("NSRSFZJHM >=", value, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmLessThan(String value) {
            addCriterion("NSRSFZJHM <", value, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmLessThanOrEqualTo(String value) {
            addCriterion("NSRSFZJHM <=", value, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmLike(String value) {
            addCriterion("NSRSFZJHM like", value, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmNotLike(String value) {
            addCriterion("NSRSFZJHM not like", value, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmIn(List<String> values) {
            addCriterion("NSRSFZJHM in", values, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmNotIn(List<String> values) {
            addCriterion("NSRSFZJHM not in", values, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmBetween(String value1, String value2) {
            addCriterion("NSRSFZJHM between", value1, value2, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrsfzjhmNotBetween(String value1, String value2) {
            addCriterion("NSRSFZJHM not between", value1, value2, "nsrsfzjhm");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhIsNull() {
            addCriterion("NSRLXDH is null");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhIsNotNull() {
            addCriterion("NSRLXDH is not null");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhEqualTo(String value) {
            addCriterion("NSRLXDH =", value, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhNotEqualTo(String value) {
            addCriterion("NSRLXDH <>", value, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhGreaterThan(String value) {
            addCriterion("NSRLXDH >", value, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhGreaterThanOrEqualTo(String value) {
            addCriterion("NSRLXDH >=", value, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhLessThan(String value) {
            addCriterion("NSRLXDH <", value, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhLessThanOrEqualTo(String value) {
            addCriterion("NSRLXDH <=", value, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhLike(String value) {
            addCriterion("NSRLXDH like", value, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhNotLike(String value) {
            addCriterion("NSRLXDH not like", value, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhIn(List<String> values) {
            addCriterion("NSRLXDH in", values, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhNotIn(List<String> values) {
            addCriterion("NSRLXDH not in", values, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhBetween(String value1, String value2) {
            addCriterion("NSRLXDH between", value1, value2, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrlxdhNotBetween(String value1, String value2) {
            addCriterion("NSRLXDH not between", value1, value2, "nsrlxdh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhIsNull() {
            addCriterion("NSRWXH is null");
            return (Criteria) this;
        }

        public Criteria andNsrwxhIsNotNull() {
            addCriterion("NSRWXH is not null");
            return (Criteria) this;
        }

        public Criteria andNsrwxhEqualTo(String value) {
            addCriterion("NSRWXH =", value, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhNotEqualTo(String value) {
            addCriterion("NSRWXH <>", value, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhGreaterThan(String value) {
            addCriterion("NSRWXH >", value, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhGreaterThanOrEqualTo(String value) {
            addCriterion("NSRWXH >=", value, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhLessThan(String value) {
            addCriterion("NSRWXH <", value, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhLessThanOrEqualTo(String value) {
            addCriterion("NSRWXH <=", value, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhLike(String value) {
            addCriterion("NSRWXH like", value, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhNotLike(String value) {
            addCriterion("NSRWXH not like", value, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhIn(List<String> values) {
            addCriterion("NSRWXH in", values, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhNotIn(List<String> values) {
            addCriterion("NSRWXH not in", values, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhBetween(String value1, String value2) {
            addCriterion("NSRWXH between", value1, value2, "nsrwxh");
            return (Criteria) this;
        }

        public Criteria andNsrwxhNotBetween(String value1, String value2) {
            addCriterion("NSRWXH not between", value1, value2, "nsrwxh");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}